import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import settings from './modules/settings'
import user from './modules/user'
import menu from './modules/menu'
import role from './modules/role'
import roleMenu from './modules/roleMenu'
import medicine from './modules/medicine'
import hospitalType from './modules/hospitalType'
import roleInterface from './modules/roleInterface'
import hospital from './modules/hospital'
import patient from './modules/patient'
import section from './modules/section'
import registration from './modules/registration'
import order from './modules/order'
import schedule from './modules/schedule'
import orderItem from './modules/orderItem'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    settings,
    user,
    menu,
    role,
    roleMenu,
    medicine,
    hospitalType,
    roleInterface,
    hospital,
    patient,
    section,
    order,
    registration,
    schedule,
    orderItem
  },
  getters
})

export default store
